package work;

public class NamedEntity implements Comparable<NamedEntity>{
	final String type;
	final String text;
	final int start;
	final int sentenceNum;
	final boolean isSubEntity;
	public NamedEntity(String _type, String _text, int _start, int _sentenceNum){
		type = _type;
		text = _text;
		start = _start;
		sentenceNum = _sentenceNum;
		isSubEntity = false;
	}
	public NamedEntity(String _type, String _text, int _start, int _sentenceNum, boolean _isSubEntity){
		type = _type;
		text = _text;
		start = _start;
		sentenceNum = _sentenceNum;
		isSubEntity = _isSubEntity;
	}
	@Override
	public int compareTo(NamedEntity that) {
		return this.start - that.start;
	}
}
